package com.gopay.common.domain.cloud;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 云账户个人用户证件信息辅助类
 * 
 * @ClassName: CloudCustPersCert
 * @Description: 保存了云账户个人用户证件信息辅助类
 * @author sh.jiao
 * @date 2018年1月10日 上午午11:12:09
 */
@Entity
@Table(name = "CLOUD_CUST_PERS_CERT_INFO")
public class CloudCustPersCert extends BaseEntity {

    private static final long serialVersionUID = 8646416340966273936L;

    /**
     * 客户ID(对应CUST_PERSON_INFO表的主键)
     */
    private String custId;

    /**
     * 身份证正面
     */
    private String positiveIDCard;

    /**
     * 身份证正面缩略图保存地址
     */
    private String positiveIDCardThumb;

    /**
     * 身份证反面
     */
    private String negativeIDCard;

    /**
     * 身份证反面缩略图保存地址
     */
    private String negativeIDCardThumb;

    /**
     * 手持身份证
     */
    private String handheldIDCard;

    /**
     * 手持身份证缩略图保存地址
     */
    private String handheldIDCardThumb;

    /**
     * 创建时间
     */
    private Date createTs;

    /**
     * 最后修改时间
     */
    private Date lastUpdTs;

    /**
     * 状态
     */
    private String status = "0";

    private Date cardTerm;

    // 初始化
    public static final String STATUS_INIT = "0";
    //public static final String STATUS_USED = "1";
    // 审核通过
    public static final String STATUS_PASSED = "1";
    // 审核拒绝
    public static final String STATUS_REFUSED = "2";


    @Id
    @Column(name = "CUST_ID", unique = true, nullable = false, length = 10)
    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    @Column(name = "POSITIVE_ID_CARD", length = 500)
    public String getPositiveIDCard() {
        return positiveIDCard;
    }

    public void setPositiveIDCard(String positiveIDCard) {
        this.positiveIDCard = positiveIDCard;
    }

    @Column(name = "POSITIVE_ID_CARD_THUMB", length = 500)
    public String getPositiveIDCardThumb() {
        return positiveIDCardThumb;
    }

    public void setPositiveIDCardThumb(String positiveIDCardThumb) {
        this.positiveIDCardThumb = positiveIDCardThumb;
    }

    @Column(name = "NEGATIVE_ID_CARD", length = 500)
    public String getNegativeIDCard() {
        return negativeIDCard;
    }

    public void setNegativeIDCard(String negativeIDCard) {
        this.negativeIDCard = negativeIDCard;
    }

    @Column(name = "NEGATIVE_ID_CARD_THUMB", length = 500)
    public String getNegativeIDCardThumb() {
        return negativeIDCardThumb;
    }

    public void setNegativeIDCardThumb(String negativeIDCardThumb) {
        this.negativeIDCardThumb = negativeIDCardThumb;
    }

    @Column(name = "handheld_id_card", length = 500)
    public String getHandheldIDCard() {
        return handheldIDCard;
    }

    public void setHandheldIDCard(String handheldIDCard) {
        this.handheldIDCard = handheldIDCard;
    }

    @Column(name = "handheld_id_card_thumb", length = 500)
    public String getHandheldIDCardThumb() {
        return handheldIDCardThumb;
    }

    public void setHandheldIDCardThumb(String handheldIDCardThumb) {
        this.handheldIDCardThumb = handheldIDCardThumb;
    }

    @Column(name = "create_ts")
    public Date getCreateTs() {
        return createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    @Column(name = "last_upd_ts")
    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Column(name = "status",nullable = false,length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Column(name = "card_term")
    public Date getCardTerm() {
        return cardTerm;
    }

    public void setCardTerm(Date cardTerm) {
        this.cardTerm = cardTerm;
    }

	@Override
	public String toString() {
		return "CloudCustPersCert [custId=" + custId + ", positiveIDCard=" + positiveIDCard + ", positiveIDCardThumb="
				+ positiveIDCardThumb + ", negativeIDCard=" + negativeIDCard + ", negativeIDCardThumb="
				+ negativeIDCardThumb + ", handheldIDCard=" + handheldIDCard + ", handheldIDCardThumb="
				+ handheldIDCardThumb + ", createTs=" + createTs + ", lastUpdTs=" + lastUpdTs + ", status=" + status
				+ ", cardTerm=" + cardTerm + "]";
	}
    
}
